package com.soulmate.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常
 *
 * @author huaiping
 * @date 2/20/23-3:02 PM
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends Exception{
    /**
     * 异常代码
     */
    private Integer exceptionCode;

    public BusinessException(String message, Integer exceptionCode) {
        super(message);
        this.exceptionCode = exceptionCode;
    }
    public BusinessException() {
    }
}
